a09f3bd8850805ab464d7b872bd507907a4ae3b2,server/src/main/java/org/cloudfoundry/identity/uaa/provider/saml/LoginSamlAuthenticationProvider.java,LoginSamlAuthenticationProvider,authenticate,#Authentication#,123
Before Change
UaaPrincipal principal = new UaaPrincipal(user);
UaaAuthentication resultUaaAuthentication = new LoginSamlAuthenticationToken(principal, result).getUaaAuthentication(user.getAuthorities(), filteredExternalGroups, userAttributes);
if (samlConfig.isStoreCustomAttributes()) {
userDatabase.storeUserInfo(user.getId(), new UserInfo(resultUaaAuthentication.getUserAttributes()));
}
return resultUaaAuthentication;
}
After Change
if (samlConfig.isStoreCustomAttributes()) {
userDatabase.storeUserInfo(user.getId(),
new UserInfo()
.setUserAttributes(resultUaaAuthentication.getUserAttributes())
);
}
return resultUaaAuthentication;
}